//package Servlet;
//
//import Service.Service;
//
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServlet;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//import java.io.IOException;
//
//public class RegistServlet extends HttpServlet {
//    Service service=new Serviceimply();
//    @Override
//    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        String sname = req.getParameter("sname");
//        String pwd = req.getParameter("pwd");
//
//        boolean b = service.existPwd(pwd);
//        if(b){
//            req.setAttribute("msg","密码存在");
//            req.setAttribute("username",sname);
//            req.getRequestDispatcher("Regist.jsp").forward(req,resp);
//        }else{
//            req.getRequestDispatcher("RegistSuccess.jsp").forward(req,resp);
//        }
//    }
//}
